package com.example.multidatasource.db2.service;

import com.example.multidatasource.db2.entity.Student;
import com.example.multidatasource.db2.entity.StudentExample;
import com.example.multidatasource.db2.mapper.StudentMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author huxb
 * @date 2020/4/18 0018 上午 9:02
 */
@Service
public class StudentService {

    @Resource
    private StudentMapper studentMapper;

    public List<Student> findSudnetList() {

        StudentExample example   = new StudentExample();


      return   studentMapper.selectByExample(example);
    }
}
